﻿@using Microsoft.Extensions.FileProviders;
@using StaticFilesSample.Infrastructure.Extensions;
@model IDirectoryContents
@{
    ViewData["Title"] = "Index";
}

<h2>Index</h2>
<img src="/OutputStaticFiles/0.jpg" alt="Alternate Text" asp-append-version="true" />

<img src="@this.AddAppendVersion("/OutputStaticFiles/0.jpg")" alt="Alternate Text" />
<ul class="list">
    @foreach (var item in Model)
    {
        <li class="list-item"><strong>@item.Name</strong>@item.Length <span>@item.PhysicalPath</span></li>
    }
</ul>

@await Component.InvokeAsync("Blogs")
